package ks.client.controllers;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import ks.client.gui.UMGUI3CHAT;
import ks.client.lobby.Lobby;

/**
 * 
 * Processes the private chat window
 * 
 * @author szutshi
 *
 */
public class PrivateChatClick implements ActionListener{
	
	Lobby lobby;
	
	/**
	 * 
	 * PrivateChatClick constructor.
	 * 
	 * @param lobby
	 */
	public PrivateChatClick(Lobby lobby) {
		this.lobby = lobby;
	}
	
	/**
	 * Creates a new UMGUI3CHAT window.
	 */
	public void actionPerformed(ActionEvent e){
		JFrame jf = new UMGUI3CHAT(lobby);
		jf.setTitle ("Private Chat");
		jf.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		jf.setVisible(true);
	}

}
